package com.xyht.medicine_management_system.modules.order.entity.resp;

import com.xyht.medicine_management_system.modules.coupon.entity.resp.MmsUserCouponRelationResp;
import com.xyht.medicine_management_system.modules.order.entity.req.SimpleMedicineReq;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

@Data
@EqualsAndHashCode(callSuper = false)
public class CheckoutResp implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "商品及数量")
    private List<SimpleMedicineReq> simpleMedicineList;

    @ApiModelProperty(value = "当前用户可用优惠券")
    private List<MmsUserCouponRelationResp> validCouponList;

    @ApiModelProperty(value = "用户使用的优惠券关系id")
    private String UserCouponId;

    @ApiModelProperty(value = "优惠金额")
    private BigDecimal discountAmount;

    @ApiModelProperty(value = "合计")
    private BigDecimal totalPrice;

}
